package cn.wolfcode.service;


import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface IEmployeeService extends IService<Employee> {
    void delete(Long id);//删除

    void insert(Employee employee);//增加

    Employee get(Long id);//查一个

    List<Employee> listAll();//查所有

    void update(Employee employee);//修改

    //分页查询
    IPage<Employee> query(QueryObject qo);

    Employee selectByUername(String username);

    List<Employee> selectedAll();

    Employee login(String username, String password);

    List<String> selectByEidPermission(Long id);

}
